package com.smartcar.auth.service;

import com.smartcar.common.domain.User;
import com.smartcar.common.domain.request.LoginRequest;
import com.smartcar.common.domain.response.TokenResponse;
import com.smartcar.common.result.Result;

import javax.servlet.http.HttpServletRequest;

public interface AuthService {
    Result<TokenResponse> login(LoginRequest loginRequest);

    User userInfo();

    Result logout();

    Result registered(User user);

    Result getCode(String phone);
}
